package com.tourcools.client;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ImportResource("classpath:dubbo-consumer.xml")
public class ClientStart {
    public static void main(String[] args) throws Exception{

        System.setProperty("org.springframework.boot.logging.LoggingSystem","org.springframework.boot.logging.log4j2.Log4J2LoggingSystem");
        System.setProperty("dubbo.application.logger","slf4j");
        new SpringApplicationBuilder(ClientStart.class)
                .web(WebApplicationType.SERVLET)
                .run(args);

    }


}
